<%@ page language="java" contentType="text/html; charset=UTF-8"
		 pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="aa" uri="http://ajaxanywhere.sourceforge.net/"%>
<%--<%@ taglib tagdir="/WEB-INF/tags" prefix="app"%>--%>
<!doctype html>
<html lang="zh-CN">
<head>
	<meta charset="utf-8">
	<meta name="viewport"
		  content="width=device-width, initial-scale=1, shrink-to-fit=no">
	<title>jsp</title>
	<script src="/webjars/jquery/3.5.1/jquery.js"></script>
	<script src="/aa.js"></script>
	<link rel="stylesheet" href="/resources/css/bootstrap.min.css" />
	<link rel="stylesheet" href="/resources/css/dashboard.css" />
	<title>弹窗传值</title>
</head>
<body>
<div class="container">
	<div class="mb-3">
		<label  class="form-label">ID</label>
		<input type="text" class="form-control"  name="id" id="id">
	</div>
	<div class="mb-3">
		<label  class="form-label">NAME</label>
		<input type="text" class="form-control"  name="name"  id="name">
	</div>
	<!-- Scrollable modal -->
	<!-- Button trigger modal -->
<%--	<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal">--%>
<%--		弹窗1-%>
<%--	</button>--%>

	<button type="button" id="tc1" class="btn btn-success">弹窗1</button>
	<button type="button" id="tc2" class="btn btn-success">弹窗2</button>
</div>
<script type="text/javascript">
	$('#tc1').click(function() {
		window.open('/j/dialog', 'newwindow', 'height=500, width=800, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no')
	});

	$('#tc2').click(function() {
		window.open('/j/dialog2', 'newwindow', 'height=500, width=800, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no')

	});

	function dialogConfirm(v){
		$('#id').val(v.id);
		$('#name').val(v.name);
	}


</script>
<script src="/resources/js/http.js"></script>
<script src="/resources/js/vue.global.prod.js"></script>
<script src="/resources/js/bootstrap.bundle.min.js"></script>
<script src="/resources/js/feather.min.js"></script>
</body>
</html>